<%
	'## Action 에 추가되는 헤더
	If wMode = "makeCSV" Then 
		Response.CharSet = "EUC-KR" 
	Else 
		Response.CharSet = "utf-8" 
	End If 
	Response.AddHeader "Pragma","no-cache"
	Response.AddHeader "Expires","0"

	xMode		= Request("xMode")
	wMode		= Request("wMode")

	If wMode = "makeCSV" Then 
			Response.AddHeader "Content-type", "text/html; charset=euc-kr"
	Else 
		If xMode = "debug" Or xMode = "txt" Then 
			Response.AddHeader "Content-type", "text/html; charset=utf-8"
		Else 
			Response.AddHeader "Content-type", "text/xml; charset=utf-8"
			Response.write "<?xml version=""1.0"" encoding=""UTF-8""?>" & vbcrlf
		End If 
	End If 

	'## 권한 체크

	If Request.Cookies("S_uid") = "" Then 
		Call rsWithXML("Session Off")
		Response.end
	End If 
	
	isAvail__perm = aFieldValue("SELECT ISNULL(count(*),0) FROM tblUser WHERE userId='" & Request.Cookies("S_uid") & "' AND loginOffDt>'" & Date() & "'")
	If isAvail__perm = "0" Then 
		Call rsWithXML("Session Off")
		Response.end
	End If 


	user_Id = Request.Cookies("S_uid")
%>